package com.ybear.citypickerview.entity;

import com.ybear.ybcomponent.base.adapter.BaseXRecyclerViewAdapter;

import java.util.List;

public class CityEntity extends CityData implements BaseXRecyclerViewAdapter.BaseXrvEntity {
    private List<CityEntity> children;
    private boolean isSelect;

    @Override
    public String toString() {
        return "CityEntity{" +
                "code='" + getCode() + '\'' +
                ", name='" + getName() + '\'' +
                ", children=" + children +
                ", isSelect=" + isSelect +
                '}';
    }

    public List<CityEntity> getChildren() {
        return children;
    }

    public CityEntity setChildren(List<CityEntity> children) {
        this.children = children;
        return this;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public CityEntity setSelect(boolean select) {
        isSelect = select;
        return this;
    }
}
